<%-- 
    Document   : view_Services
    Created on : Sep 2, 2013, 1:31:52 PM
    Author     : hb
--%>

<%@page import="java.util.HashMap"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Set"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <style type="text/css">
            table.styletable{
                font-family: verdana,arial,sans-serif;
                font-size:11px;
                color:black;
                width: 100%;
            }
            table.styletable th {
                background:#990000;
                font-size: 13px;
                color: white;
               
                padding: 8px;
               
            }
            table.styletable td {
                background:#ff99ff;
               
                padding: 8px;
              
            }
        </style>
    </head>
    <body>
        

        <%
            HashMap hm = (HashMap) request.getSession().getAttribute("Charges_data");
            Set charges = hm.keySet();
            Iterator itr = charges.iterator();
        %>
        <form method="POST">
            <table border="1" class="styletable">
                <thead>

                <th>Id_services</th>
                <th>Select_edition</th>
                <th>Post_your</th>
                <th>Payment</th>

                <th>Update</th>
                <th>Delete</th>

                </thead>

                <%
                    int sno = 0;
                    while (itr.hasNext()) {
                        Object keyid = itr.next();
                        HashMap hm2 = (HashMap) hm.get(keyid);
                        sno++;
                %>
                <tr>
                    <td><%out.println(hm2.get("id_services"));%></td>
                    <td><%out.println(hm2.get("select_edition").toString());%></td>
                    <td><%out.println(hm2.get("post_your").toString());%></td>
                    <td><%out.println(hm2.get("payment").toString());%></td>




                    <td><a style="text-decoration: none" href="update_services?id=<%out.println(hm2.get("id_services"));%>"><img src="images/update.png" border="0" width="25" height="25" alt="Update"/></a></td>
                    <td><a style="text-decoration: none" href="Delete_Services?id=<%out.println(hm2.get("id_services"));%>"><img src="images/Delete.png" width="25" border="0" height="25" alt="Delete"/></a></td>
                </tr>
                <%
                    }
                %>

            </table>

        </form>
    </body>
</html>
